package com.clouds.wms.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class DoubleRowMapper implements RowMapper<Double> {

	private static DoubleRowMapper doubleRowMapper = null;
	
	public static DoubleRowMapper getDoubleRowMapper() {
		if(doubleRowMapper == null) {
			doubleRowMapper = new DoubleRowMapper();
		}
		return doubleRowMapper;
	}
	public Double mapRow(ResultSet rs, int rowNum) throws SQLException {
		return rs.getDouble(1);
	}
	
}
